﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IBody {

        /// <summary>
        /// Insert new BodyEnt
        /// </summary>
        /// <param name="item">BodyEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(BodyEnt item);
        /// <summary>
        /// Update BodyEnt
        /// </summary>
        /// <param name="item">BodyEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(BodyEnt item);
        /// <summary>
        /// Delete a BodyEnt
        /// </summary>
        /// <param name="iD">ID of BodyEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all BodyEnt
        /// </summary>
        /// <returns>return a list of BodyEnt (empty list if no BodyEnt exists)</returns>
        List<BodyEnt> GetAll();
    }
}
